<!DOCTYPE HTML>
<html>
<head>
    <title>个人中心</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="博艺网" />
    <link rel="shortcut icon" type="image/x-icon" href="http://img.boyitongcheng.com/favicon.ico" media="screen"/>
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!-- Bootstrap Core CSS -->
    <link href="/common/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
    <!-- Custom CSS -->
    <link href="/common/css/style.css" rel='stylesheet' type='text/css' />
    <!-- Graph CSS -->
    <#--<link href="/common/css/lines.css" rel='stylesheet' type='text/css' />-->
    <link href="/common/css/font-awesome.css" rel="stylesheet">
    <!-- jQuery -->
    <script src="/common/js/jquery.min.js"></script>
    <script type="text/javascript" src="//code.jquery.com/jquery-2.1.0.js"></script>
    <!----webfonts--->
    <#--<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>-->
    <!---//webfonts--->
    <!-- Nav CSS -->
    <link href="/common/css/custom.css" rel="stylesheet">
    <link href="/common/css/clndr.css" rel="stylesheet">
    <link href="/common/css/iconfont.css" rel="stylesheet" type="text/css"/>

    <script>
        function resizeIframe(obj) {
            obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
        }
    </script>
</head>
<body onload="toastFunction();">
<div id="wrapper">
    <!-- Navigation -->
    <nav class="top1 navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0px;border: 0px;">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#"><span class="iconfont icon-caidan1">&nbsp;&nbsp;</span>个人中心</a>
            <a class="navbar-brand" href="/index" target="_blank">回到首页</a>
            <a class="navbar-brand" href="/user/trolleyManage" target="_blank">我的购物车</a>
        </div>

        <div class="navbar-collapse collapse navbar-responsive-collapse">
        <#if username??>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a style="color: #FFF;font-size: 14px;" href="/logout">退出登录</a>
                </li>
            </ul>
        </#if>
        </div>
    </nav>

        <div>
            <div class="sidebar-nav navbar-default sidebar" role="navigation" style="width: 250px;float: left">
                <div style="padding: 2em 0 0 0;">
                    <img src='<#if user.getAvatar()??>http://img.boyitongcheng.com/${user.getAvatar()}<#else>/common/images/default_avatar.png</#if>' style="margin-left: 90px;border-radius: 50%;vertical-align: middle;" width="70px" height="70px" alt=""/>
                </div>
                <div style="margin:10px 0;text-align: center;color: #FFF;font-size: 16px;">
                ${user.getCnName()!''}
                <#if (user.getUserType() == 3 || user.getUserType() == 4) && channel??>
                    (${channel.getName()!''})
                </#if>
                </div>
            <#if user.getUserType() == 2>
                <div style="margin:0 auto;text-align: center;margin-top: 10px;color: #FFF;font-size: 16px;">
                    <a style="width: 120px;" href="/user/addBizInfoView" target="rightFrameName" class="btn btn-success">申请成为商家</a>
                </div>
            </#if>

                <ul class="nav" id="side-menu">
                    <li id="fuc_menu_0">
                        <a class="fuc_menu_00" href="right.ftl" target="rightFrameName"><i class="fa fa-sitemap fa-fw nav_icon"></i>后台首页<span class="fa arrow"></span></a>
                    </li>

                    <#list fatherList as father>
                        <li id="fuc_menu_${father.getId()?string}">
                            <a class="fuc_menu_a"><i class="fa fa-sitemap fa-fw nav_icon"></i>${father.getName()}<span class="fa arrow"></span></a>
                            <div class="submenu" style="display: none;">
                                <ul class="nav nav-second-level">
                                    <#assign subList = fatherMap[father.getId()?string]!>
                                    <#list subList as subFunc>
                                    <li>
                                        <a href="${subFunc.getShowUrl()}" target="rightFrameName">${subFunc.getName()}</a>
                                        </li>

                                    </#list>
                                </ul>
                            </div>
                        </li>
                    </#list>
                </ul>
            </div>
            <!-- /.sidebar-collapse -->

            <div style="background-color: #fff;margin-left:251px;">
            <#--<div class="graphs">-->
            <#if src??>
                <iframe id="rightFrameId" name="rightFrameName" scrolling="yes" frameborder="0" src="${src}" width="100%" style="min-height: 1200px;" ></iframe>
            <#else >
                <iframe id="rightFrameId" name="rightFrameName" scrolling="yes" frameborder="0" src="right.ftl" width="100%" style="min-height: 1200px;"  ></iframe>
            </#if>
            <#--</div>-->
            </div>
        </div>
        <!-- /.navbar-static-side -->
    <#--</nav>-->



    <div id="snackbar"><#if result??>${result}</#if></div>
    <!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Bootstrap Core JavaScript -->
<script src="/common/js/bootstrap.min.js"></script>
<script>

    $(function() {
        $(".fuc_menu_a").on('click', function() {
            $(this).next(".submenu").toggle();
        });
    });

</script>

<script>
    function toastFunction() {
        var x = document.getElementById("snackbar")
//        alert(x.innerHTML);
        if (x.innerHTML =="" || undefined || null){
            return;
        }
        x.className = "show";
        setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
    }
</script>
</body>
</html>